#include <stdio.h>

int main(){
    //打开一个文件
    FILE* f = fopen("../out/a.txt","w+");
    int result = fprintf(f,"你好 hello！\n");
    printf("result = %d\n",result);
    result =  fputs("你好中国\n",f);
    printf("result = %d\n",result);
    result = fclose(f);
    printf("result = %d\n",result);
    return 0;
}